package com.oneear.service;

import com.oneear.mapper.UserMapper;
import com.oneear.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Service
public class UserService {
    @Autowired

    private UserMapper userMapper;



    public List<User> getAllUser() {
        return userMapper.getAllUser();
    }

    public User queryById(long id) {
        return userMapper.selectUserById(id);
    }
}


